package bibliotheque.wave;

import java.io.Serializable;

public class WaveId implements Serializable {
    
    private String ip;
    private int hl;
    
    public WaveId(String ip, int hl) {
        this.ip = ip;
        this.hl = hl;
    }
    
    public String GetIp() {
        return(this.ip);
    }
    
    public int GetHl() {
        return(this.hl);
    }
    
    public int hashCode() {
        return(this.ip.hashCode() + this.hl);
    }
    
    public boolean equals(Object object) {
        if(!(object instanceof WaveId)) return(false);
        WaveId wave_id = (WaveId)object;
        return(this.ip.equals(wave_id.GetIp()) && this.hl == wave_id.GetHl());
    }
}
